package o;

import android.os.Bundle;
import android.os.RemoteException;
import com.huawei.hmf.orb.aidl.communicate.DataBuffer;
import o.ffr.e;

public class fgk implements ffr {
    private final String ˊ;
    private final ffc ˋ;
    private final Class<? extends ffc> ˏ;

    public fgk(String str, ffc o_ffc, Class<? extends ffc> cls) {
        this.ˊ = str;
        this.ˋ = o_ffc;
        this.ˏ = cls;
    }

    public final void ˎ(fgd o_fgd, e eVar) {
        int ˏ = ˏ(o_fgd, new fgh(this.ˏ, eVar));
        if (ˏ != 0) {
            eVar.ˎ(ˏ, null);
        }
    }

    public final void ˋ(fgd o_fgd, e eVar) {
        ˎ(o_fgd, eVar);
    }

    private int ˏ(fgd o_fgd, ffu o_ffu) {
        DataBuffer dataBuffer = new DataBuffer(this.ˊ);
        fib o_fib = new fib();
        dataBuffer.ˎ(o_fib.ˋ(this.ˋ, new Bundle()));
        fgx o_fgx = new fgx();
        o_fgx.appId = o_fgd.ᐝ();
        o_fgx.packageName = o_fgd.ʼ();
        dataBuffer.ˏ = o_fgx.toBundle(o_fib);
        try {
            o_fgd.ʽ().ॱ(dataBuffer, o_ffu);
            return 0;
        } catch (RemoteException e) {
            return 207135001;
        }
    }
}
